home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / GD / GD1.2 / Makefile < prev    next >
Makefile  |  1999-09-11  |  917b  |  35 lines

  1. #Depending on your system, you will need to modify this makefile.
  2.  
  3. #If you do not have gcc, change the setting for CC, but you must
  4. #use an ANSI standard C compiler (NOT the old SunOS 4.1.3 cc
  5. #compiler; get gcc if you are still using it). 
  6.  
  7. #If the ar command fails on your system, consult the ar manpage
  8. #for your system. 
  9.  
  10. CC=gcc 
  11. AR=ar
  12. CFLAGS=-O
  13. LIBS=-L./ -lgd -lm
  14.  
  15. all: libgd.a gddemo giftogd webgif
  16.  
  17. gddemo: gddemo.o libgd.a gd.h gdfonts.h gdfontl.h
  18.     $(CC) gddemo.o -o gddemo    $(LIBS)
  19.  
  20. giftogd: giftogd.o libgd.a gd.h
  21.     $(CC) giftogd.o -o giftogd    $(LIBS) 
  22.  
  23. libgd.a: gd.o gdfontt.o gdfonts.o gdfontmb.o gdfontl.o gdfontg.o \
  24.     gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
  25.     rm -f libgd.a
  26.     $(AR) rc libgd.a gd.o gdfontt.o gdfonts.o gdfontmb.o \
  27.         gdfontl.o gdfontg.o
  28.  
  29. webgif: webgif.o libgd.a gd.h
  30.     $(CC) webgif.o -o webgif    $(LIBS)
  31.  
  32. clean:
  33.     rm -f *.o *.a gddemo giftogd 
  34.  
  35.